<html>
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>迷你波波间</title>
    <style>
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    button {
        border: none;
        border-radius: 4px;
        background-color: #0078d4;
        color: white;
        font-size: 14px;
        cursor: pointer;
        position: absolute;
        top: 5%;
        left: 15%;
        transform: none;
        z-index: 999;
        width: 72px;
        height: 24px;
        text-align: center;
    }

    button:hover {
        background-color: #005a9e;
    }

    button:active {
        background-color: #004578;
    }

    video {
        width: 100%;
        height: auto;
        object-fit: cover;
        position: relative;
    }

    .option {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }

    .option input {
        margin-right: 4px;
    }

    .option label {
        font-size: 14px;
    }

    #media {
        max-width: 1280px;
        margin: 16px auto;
        padding: 16px;
        border: 1px solid #d6d6d6;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    #media h2 {
        font-size: 24px;
        color: #333333;
        margin-bottom: 16px;
        position: relative;
    }

    /* Add media queries for mobile devices */

    @media screen and (max-width: 768px) {
      button {
          font-size: 14px; /* Reduce the font size of the buttons */
      }

      #media h2 {
          font-size: 18px; /* Reduce the font size of the heading */
      }

      video {
          height: calc(100vw * 9 / 16); /* Adjust the height of the video to maintain aspect ratio */
      }

      #media {
          max-width: none; /* Remove the max-width of the media container */
          margin: 0; /* Remove the margin of the media container */
          border-radius: 0; /* Remove the border radius of the media container */
      }

      .option {
          justify-content: center; /* Center the option element */
      }

      button {
          width: calc(20% - 8px); /* Make the buttons take half of the screen width */
          margin-left: 20px; /* Add some margin between the buttons */
          margin-right: 4px;
          top: 2.5%;
      }
    }

    </style>
</head>
<body>

<!--<div class="option">-->
<!--    <input id="use-stun" type="checkbox"/>-->
<!--    <label for="use-stun">Use STUN server</label>-->
<!--</div>-->
<button id="start" onclick="start()">开始</button>
<button id="stop" style="display: none" onclick="stop()">结束</button>

<div id="media">
    <h2>小圆LV</h2>

    <audio id="audio" autoplay="true" ></audio>
    <video id="video" autoplay="true" playsinline="true"></video>
</div>

<script src="client.js"></script>
</body>
</html>